package marina;

import java.util.Scanner;

public class J15Ch05Printers {
	Scanner sc = new Scanner(System.in);
	Printers moonhei = new Printers();


}

class Printers{
	private String modelName;
	private String maker;
	private String ifKind;
	private int numOfP;
	private int residual;
	
	public void Printers(String modelName, String maker, String ifKind, int numOfP, int residual){
		this.modelName = modelName;
		this.maker = maker;
		this.ifKind = ifKind;
		this.numOfP = numOfP;
		this.residual = residual;
	}
	
	public String getModelName() {
		return modelName;
	}


	public void setModelName(String modelName) {
		this.modelName = modelName;
	}


	public String getMaker() {
		return maker;
	}


	public void setMaker(String maker) {
		this.maker = maker;
	}


	public String getIfKind() {
		return ifKind;
	}


	public void setIfKind(String ifKind) {
		this.ifKind = ifKind;
	}


	public int getNumOfP() {
		return numOfP;
	}


	public void setNumOfP(int numOfP) {
		this.numOfP = numOfP;
	}


	public int getResidual() {
		return residual;
	}


	public void setResidual(int residual) {
		this.residual = residual;
	}


	public int print(){
		return residual -= numOfP;
	}
	
	@Override
	public String toString() {
		String result = "모델명 : " + getModelName() + "\n제조사 : " + getMaker() + "\n인터페이스 종류 : " + getIfKind() + "\n인쇄 매수 : " + getNumOfP() + "\n인쇄종이잔량 : " + getResidual();
		return result;
	}
}

class InkJatPrinters extends Printers{
	private int inkResidaul;
	
	public void InkJatPrinters(){
		
	}
	public int getInkResidaul() {
		return inkResidaul;
	}

	public void setInkResidaul(int inkResidaul) {
		this.inkResidaul = inkResidaul;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return super.toString() + "\n잉크 잔량 : " + getInkResidaul();
	}
}

class LaserPrinters extends Printers{
	private int tonerResidaul;

	public int getTonerResidaul() {
		return tonerResidaul;
	}

	public void setTonerResidaul(int tonerResidaul) {
		this.tonerResidaul = tonerResidaul;
	}
	
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return super.toString() + "\n토너 잔량 : " + getTonerResidaul();
	}
}